<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加权限</title>
<include file="Public/header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery.validate.js"></script>
<script type="text/javascript">
$(function(){

    $("#myform").validate({
        rules: {
                group_id : {required: true,},
                title : {required: true,},
                authcode : {required: true,},

        },
        messages: {
                group_id : {required: '请选择组',},
                title : {required: '请输入标题！',},
                authcode : {required: '请输入模块名！',},
       },
    })
})

</script>
</head>


<body>
<div>
   
  
        <div class="list_vmall_man">
        	<div class="list_vmall_le">
            	<include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
            </div>
            <div class="list_vmall_rig">
            	<ul class="breadcrumb">
                    <li><a href="<{:U('rule')}>">权限列表</a> </li>
                    <li class="active">添加权限</li>
                </ul>
                <div class="list_vmall_bort">
                    <form id="myform" method="post" action="<{:U('rule_add_do')}>">
                    <input type="hidden" name="id" value="<{$data.id}>">
                    	<div class="vmall_padi">

                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">选择组</label>
                                <div class="vmaal_rols">
                                   <select name="group_id">
                                       <option value="">--选择组--</option>
                                       <volist name="group" id="vo">
                                       <option value="<{$vo.id}>" <if condition="$data['group_id'] eq $vo['id']">selected</if>><{$vo.title}></option>
                                       </volist>
                                   </select>
                                    
                                </div>
                            </div>
                     
                            <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">标题</label>
                                <div class="vmaal_rols">
                                    <input  type="text" class="vmaal_sinw1 input_a1 int_wod" id="title" name="title" value="<{$data.title}>">
                                    
                                </div>
                            </div>

                             <div class="vmall_cle">
                                <label for="input-title" class="vmall_te_le">模块名</label>
                                <div class="vmaal_rols">
                                    <input type="text" name="authcode" id="authcode" class="vmaal_sinw1 input_a1 int_wod" value="<{$data.authcode}>">
                                    <span style="color:red;">控制器名称,方法名组合</span>
                                </div>
                            </div>
							
                            <div class="vmall_cle">
                                <div class="vmaal_rols">
                                    <button class="v_mall_q_1" style="border:0; height:32px; padding-top:0; cursor:pointer;" type="submit">确&nbsp;&nbsp;定</button>
                                     <a class="v_mall_q_1" style="border: 0px none;height: 28px;padding-top: 0px;cursor: pointer;display: inline-block;" onclick="javascript:history.go(-1);">返&nbsp;&nbsp;回</a>
                                </div>
                            </div>

                         </div>
                     </form> 
                </div>
                
            </div>
            
            
            <!--弹窗 AD-->
            
           <!--  <div class="modal hide fade in" id="guide_1" style="display:block;" aria-hidden="false">
                <div class="modal-body">
                    <img src="__AdminImages__/guide_1.jpg">
                </div>
                <div class="modal-footer">
                    <button aria-hidden="true" data-dismiss="modal" class="btn" style="padding:4px 12px; font-size:14px;">关闭</button>
                </div>
            </div> -->
            
            <!--弹窗 |End -->
        </div>
        

    
    
    
  
</div>



</body>
</html>
